// Created by WXX on 2021/12/12 20:44
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

/**
 * 执行用时：0 ms, 在所有 C++ 提交中击败了100.00%的用户
 * 内存消耗：6.1 MB, 在所有 C++ 提交中击败了34.84%的用户
 */
class Solution {
public:
    vector<int> numMovesStones(int a, int b, int c) {

        if (a > b) swap(a, b);
        if (a > c) swap(a, c);
        if (b > c) swap(b, c);

        vector<int> res(2);
        if (c - a == 2) res[0] = 0;
        else if (b - a <= 2 || c - b <= 2) res[0] = 1;
        else res[0] = 2;

        res[1] = c - a - 2;
        return res;
    }
};

int main() {


    return 0;
}
